#include <cs50.h>
#include <stdio.h>

#define	QUIZESS 5

int main () {
	float grades[QUIZESS], sum;

	for (int i=0; i<QUIZESS; i++) {
		printf("请输入第%d成绩：", i+1);
		grades[i] = GetFloat();
	}

	sum = 0;
	for (int i=0; i<QUIZESS; i++) {
		sum += grades[i];
	}

	float average = (sum / QUIZESS);
	printf("平均数是:%.1f\n", average);
}
